#include "mainwindow.h"
#include "ui_mainwindow.h"


#include <QDebug>
#include "smartphone/Smartphone.h"


extern void smartphone_log_func(SmartphoneLogLevel level, const char *fmt, va_list args);
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    mainWidget = new MainWidget(this);
    this->setCentralWidget(mainWidget);
}

MainWindow::~MainWindow()
{
    delete mainWidget;
    delete ui;
}

void MainWindow::on_btnCall_clicked()
{
    Smartphone::getInstance()->call(ui->edtIdentity->text(), MediaTypeAudio, MediaDirectionSendRecv, MediaDirectionInvalid);
}

